package com.navi.core.constant;

//import static com.def.GenericDef.E_XPUNPACK_SLOT_NO_IN_MTRL_EXIST;

import java.io.File;
import java.util.HashSet;
import java.util.Set;

/* 基类
 * 定义基本的代码:表对应代码,错误代码 */
public class GenericDef {
	/**
	 * Usage: import static com.def.GenericDef.*;
	 */

	/**
	 * List 1. 通用常量 2. 文件相关字段 3. Db return error 4. Table error def 3**
	 * 5. Trx errot def 1** 7. Event cate 8. Basic check error
	 */

	/**
	 * 1. 通用常量定义
	 */
	public static final String RETURN_CODE_OK = "0000000";
	public static final String RETURN_CODE_ERROR = "9999999";
	public static final String RETURN_MESG_OK = "SUCCESS";
	public static final String JAVASCRIPT_ERROR_LOG = "Error from javascript ";
	public static final String JAVA_TIME_COST_LOG = "Java-cost ";

    /**
     * 2文件相关字段定义
     * getInspFlg
     */
	public static final String INSP_FLG_FRONT = "front";
	public static final String INSP_FLG_BACK = "back";
	public static final String INSP_FLG_TEST_KEY = "testKey";
	public static final String INSP_FLG_ALL = "all";
	public static final String IMPORT_EVT_CATE = "IMPT";
	public static final String BROWSER_EVT_CATE = "BROW";

	/**
	 * 3. DB 基本报错
	 */
	public static final long E_ADD_EXIST = 31;
	/**
	 * 4. 表对应错误代码
	 */
	public static final long E_BIS_DATA = 3000200;
	/**
	 * 5.Trx errot def
	 */
	public static final long E_XPAPLYWO = 1000300;
	public static final long E_XPLSTDAT_OTHER_ERROR = E_XPAPLYWO + 20;
	public static final long E_XPLSTDAT_ADMIN_NO_AUTH = E_XPAPLYWO + 21;
	public static final long E_XPUASGRP = 1003500;
	public static final long E_XPUASGRP_ALREADY_EXIST = E_XPUASGRP + 2;
	public static final long E_XPUASGRP_NOT_FOUND_USER = E_XPUASGRP + 3;
	public static final long E_XPUASGRP_NOT_ALLOW_PASSWORD_1 = E_XPUASGRP + 4;

	public static final long E_XPDEFANALYSIS = 1000400;
	public static final long E_XPDEFANALYSIS_INVALID_GLASS_COUNT = E_XPDEFANALYSIS + 1;
	public static final long E_XPDEFANALYSIS_INVALID_UID_GLASS_COUNT = E_XPDEFANALYSIS + 2;
	public static final long E_XPDEFANALYSIS_INVALID_UID_OPE_COUNT = E_XPDEFANALYSIS + 3;
	public static final long E_XPDEFANALYSIS_INVALID_UID_TYPE = E_XPDEFANALYSIS + 4;
	public static final long E_XPDEFANALYSIS_INVALID_UID_INPUT_LOSS = E_XPDEFANALYSIS + 5;
	public static final long E_XPDEFANALYSIS_INVALID_UID_GLASS_COUNT_2 = E_XPDEFANALYSIS + 6;
	public static final long E_XPDEFANALYSIS_INVALID_CONDITION_QUERY_COMPARECODES_NULL = E_XPDEFANALYSIS + 7;
	public static final long E_XPDEFANALYSIS_INVALID_CONDITION_QUERY_MISS_CONDITION = E_XPDEFANALYSIS + 8;
	public static final long E_XPDEFANALYSIS_NO_DATA_FOUND = E_XPDEFANALYSIS + 9;
	public static final long E_XPDEFANALYSIS_INVALID_CONDITION_QUERY_EQ_TYPE_NULL = E_XPDEFANALYSIS + 10;

	public static final long E_XPDEFECTCODES = 1000500;
	public static final long E_XPDEFECTCODES_INVALID_SHOP_ID = E_XPDEFECTCODES + 1;
	public static final long E_XPDEFECTCODES_INVALID_QUERY_GLASS_CONDITION = E_XPDEFECTCODES + 2;
	public static final long E_XPDEFECTCODES_QUERY_FAILED= E_XPDEFECTCODES + 3;
	public static final long E_XPDEFECTCODES_OVERSIZE= E_XPDEFECTCODES + 4;

	public static final long E_XPIVCURVE = 1000600;
	public static final long E_XPIVCURVE_NO_QUERY_CONDITION = E_XPIVCURVE + 1;

	public static final long E_XPDEFECTMAP = 1000700;
	public static final long E_XPDEFECTMAP_QUERY_FAILED= E_XPDEFECTMAP + 1;

	public static final long E_XPOINT = 1000800;
	public static final long E_XPOINT_QUERY_FAILED = E_XPOINT + 1;

	public static final long E_DATAENTRY = 1000900;
	public static final long E_DATAENTRY_IMAGE_TO_LONG = E_DATAENTRY + 1;
	public static final long E_DATAENTRY_DATA_INCOMPLETE = E_DATAENTRY + 2;

	/**
	 * service errot def
	 */
	public static final long E_SERVICE = 1000400;
	public static final long E__CHAETSERVICE_NOT_FOUND_PRODUCT = E_SERVICE + 1;
	public static final long E__CHAETSERVICE_NOT_FOUND_SHOPID = E_SERVICE + 2;
	public static final long E__CHAETSERVICE_NOT_FOUND_OPEID = E_SERVICE + 3;
	public static final long E__DEFECTJGESERVICEIMPL_NOT_UPDATE_CONTENT = E_SERVICE + 11;
	public static final long E__WPPADEFCODESERVICEIMPL_NOT_FOUND_GLASS = E_SERVICE + 21;

	public static final String DEFECT_FILE_PATH = File.separator + "dfs" + File.separator + "acf" + File.separator;
}
